package com.example.docmanagement.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 忘记密码生成的重置令牌响应
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "重置密码令牌响应结果")
public class PasswordResetTokenResponse {

    @Schema(description = "重置密码令牌，仅用于开发环境调试，正式环境应通过邮件发送", example = "9a3f0b86-7f7c-4f0a-9d5c-2d91564e89f1")
    private String resetToken;

    @Schema(description = "令牌过期时间", example = "2025-01-01T12:30:00")
    private LocalDateTime expiresAt;

    @Schema(description = "提示信息", example = "请使用该令牌调用 /api/v1/auth/password/reset 接口完成密码重置")
    private String message;
}

